<template>
  <div>
    <h2>One</h2>
    <p>count{{ count }}</p>
  </div>
</template>

<script>
export default {
name:'One',
data(){
    return{
        count:0
    }
},
mounted(){
    this.$bus.$on("changeCount",(num)=>{
        this.count +=num
    })
}
}
</script>

<style>

</style>